| Conditions | 5 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /*jslint |
||
| 5 | function id2alpha(id) { |
||
| 6 | 'use strict'; |
||
| 7 | |||
| 8 | if (id >= 0 && id < 26) { |
||
| 9 | return String.fromCharCode('A'.charCodeAt() + (id % 26)); |
||
| 10 | } |
||
| 11 | if (id >= 26 && id < 260) { |
||
| 12 | return String.fromCharCode('A'.charCodeAt() + (id % 26)) + |
||
| 13 | String.fromCharCode('0'.charCodeAt() + (id / 26)); |
||
| 14 | } |
||
| 15 | |||
| 16 | return ""; |
||
| 17 | } |
||
| 18 | |||
| 47 |